package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

/**
 * 角色信息
 */
public interface RoleService {
    List<Role> findAll();

    void add(Role role, Integer[] userIds, Integer[] permissionIds, Integer[] menuIds);

    PageResult findPage(QueryPageBean pageBean);

    Role findById(Integer id);

    void edit(Role role, Integer[] userIds, Integer[] permissionIds, Integer[] menuIds);


    List<Integer> findRoleIdsByUserId(Integer roleIds);

    void deleteById(Integer id);
}
